var http=require("http");
var fs=require("fs");
var path=require("path");
http.createServer((req,res)=>{
    var filePath=path.join(__dirname,"./senbei.jpg");
    var image=fs.readFileSync(filePath).toString("base64");
    var imguri="data:image/jpg; base64,"+image;
    res.write("<!DOCTYPE html><html><head></head><body><img src='"+imguri+"'></body></html>");
    res.end();
}).listen(8081);
console.log("server is listening");